﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mEfficiency.UI
{
    public partial class frmEFF_Main : frmModuleBase
    {
        public frmEFF_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mEfficiency; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuEFF_Inside_Detail_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("View_OP_Inside_Detail", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuEFF_Inside_nonWorkHour_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("View_OP_Hour_Missing_List_Inside", 0, false, true), sender as ToolStripMenuItem);
        }

        private void menuEFF_Efficiency_Analysis_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmEFF_Efficiency_Analyse), sender as ToolStripMenuItem);
        }

        private void menuEFF_Testing_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmEFF_Test), sender as ToolStripMenuItem);
        }

        private void menuEFF_Powder_Coating_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmEFF_Powder_Coating_Seprate), sender as ToolStripMenuItem);
        }
    }
}